<layout name='Layout/layout_main' />
<script type="text/javascript">
	$(document).ready(function(){
		set_return_url();
		$(".input-date").datepicker();
	}); 
</script>
<div class="flow">
	<form id="form_search" method='post' >
		<input type="hidden" name="fid" id="fid" value="{$folder_id}">
		<div class="row-fluid title">
			<span>{$folder_name}</span>
			<div class="input-append right">
				<input type="text"  onkeydown="key_search();" name="keyword">
				<a class="btn" type="button" onclick="btn_search();"> <i class="icon-search"></i>
				</a>
				<a class="btn" onclick="open_search();"> <i class="icon-angle-down"></i>
				</a>
			</div>
		</div>
		<div class="row-fluid adv_search">
			<div class="row-fluid adv_search_head">
				<h4 class="left">高级搜索</h4>
				<div class="right text-right">
					<a  class="btn" onclick="adv_search();">搜索</a>
					<a  class="btn" onclick="close_search();">关闭</a>
				</div>
			</div>
			<div class="row-fluid form-horizontal">
				<div class="control-group span6">
					<label class="control-label" for="li_title">标题：</label>
					<div class="controls">
						<input type="text" id="li_title" name="li_title"></div>
				</div>
				<div class="control-group span6">
					<label class="control-label" for="li_content">内容：</label>
					<div class="controls">
						<input type="text" id="li_content" name="li_content" ></div>
				</div>
			</div>
			<div class="row-fluid form-horizontal">
				<div class="control-group span6">
					<label class="control-label" for="eq_user_name">登录人：</label>
					<div class="controls">
						<input type="text" id="eq_user_name" name="eq_user_name"></div>
				</div>
				<div class="control-group span6">
					<label class="control-label" for="be_create_time">登录时间：</label>
					<div class="controls">
						<input  type="text" name="be_create_time" id="be_create_time" class="input-date" readonly="readonly">
						&nbsp;~&nbsp;
						<input type="text" name="en_create_time" id="en_create_time" readonly="readonly" class="input-date" ></div>
				</div>
			</div>
			</div>
	</form>
	<div class="table">
		<ul>
			<li class="thead" style="padding-left:10px">
				<span class="col-16 ">编号</span>
				<span class="col-8">类型</span>
				<span class="col-6 right">状态</span>
				<span  class="col-6 right"> 登录人</span>
				<span  class="col-9 right">登录时间</span>
				<div class="autocut auto">
					标题
				</div>
			</li>
			<if condition="count($list) eq 0 ">
				<li class="tbody  text-center">
					<h3>没找到相应的数据</h3>
				</li>
		</ul>
	</div>
	<else/>
	<foreach name="list" item="vo">
		<li class="tbody" style="padding-left:10px;">
			<span class="col-16">{$vo.doc_no}</span>
			<span class="col-8  text-center"> {$vo.type_name} &nbsp;</span>
			<span class="col-6 right  text-center">{$vo.step|step}</span>
			<span class="col-6 right  text-center">{$vo.user_name}</span>
			<span class="col-9 right  text-center"> {$vo.create_time|toDate='Y-m-d'} </span>
			<span class="autocut auto">
				<in name="folder" value="darft">
					<a href="{:U('edit?id='.$vo['id'])}">{$vo.title}
					<else/>
					<a href="{:U('read?id='.$vo['id'])}">{$vo.title}
				</in>
				<eq name="vo.title|strlen" value="0">
					无标题
				</eq></a> </span>
		</li>
	</foreach>
	</ul>
</div>
<div class="page">
	{$page}
</div>
</if>
</div>